import 'package:flutter/material.dart';
import 'package:ls_work/res/colors.dart';
import 'package:ls_work/widgets/load_image.dart';

class MeNormalCell extends StatelessWidget {
  final String? title;
  final String? icon;
  final Function() onTap;
  MeNormalCell({Key? key, this.title, this.icon, required this.onTap});
  @override
  Widget build(BuildContext context) {
    return InkWell(
      onTap: onTap,
      child: Container(
          width: double.infinity,
          padding: EdgeInsets.fromLTRB(15, 15, 15, 0),
          child: Column(
            mainAxisAlignment: MainAxisAlignment.start,
            crossAxisAlignment: CrossAxisAlignment.start,
            children: <Widget>[
              Row(
                mainAxisAlignment: MainAxisAlignment.start,
                crossAxisAlignment: CrossAxisAlignment.center,
                children: <Widget>[
                  LoadAssetImage(icon??"",width: 25,),
                  SizedBox(
                    width: 10,
                  ),
                  Expanded(
                    flex: 1,
                    child: Text(title??"", style: TextStyle(fontSize: 16)),
                  ),
                  Icon(
                    Icons.arrow_forward_ios,
                    color: Colours.text_gray,
                    size: 15,
                  ),
                ],
              ),
              SizedBox(
                height: 15,
              ),
              Container(
                width: double.infinity,
                color: Colours.bg_gray,
                height: 1,
              )
            ],
          )),
    );
  }
}
